//#include "Network.h"
//#include "Enter.h"
#include <QApplication>
#include "account_info.h"
#include "Enter.h"
#include "logs.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);// 在main函数中初始化

        // 正确初始化路径
        QString configPath = QApplication::applicationDirPath() + "/config.json";

        // 初始化配置管理器
        JsonConfigManager::instance()->initialize(configPath);


        /*
        // 示例：获取配置
        int timeout = JsonConfigManager::instance()->get("timeout", 5000).toInt();

        // 示例：更新配置
        JsonConfigManager::instance()->set("theme", "dark");
        JsonConfigManager::instance()->save();
        */

   //  Account_INFO info;
   //  info.show();

    enter en;
    en.show();

    return a.exec();
}
